<?php include DIR_MODULES . 'menu/menu_main_sitemap.php'; ?>

<table cellpadding="0" cellspacing="0" width="960px" border="0" align="center">
    <tr>
        <td id="coloana_dreapta_root_corp" valign="top">
        <!-- mijloc si dreapta //////////////////////////////////// -->
            <table cellpadding="0" cellspacing="0" width="100%" border="0">
                <tr>
                    <td id="content_corp" valign="top">
                    <!-- articole mijloc /////////////////////////////////////// -->
                        <div class="mijloc_root">
                            <div class="titlu_sitemap">SITE MAP</div>
                            <div class="mijloc_hr">&nbsp;</div>
                            <table cellpadding="0" cellspacing="0" border="0" width="620px">
                                <tr>
                                    <td valign="top" width="200px">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                            <?php
                                            echo '<tr><td class="sitemap_holder"><a class="sitemap_link" href="index.html"><img src="templates/default/images/more.png" width="9" height="9" /> Home</a></td></tr>';

                                            $cQuery = mysql_query("select * from dt_categories");
                                            while ($cRow = mysql_fetch_array($cQuery)){
                                                echo '<tr><td class="sitemap_holder"><a class="sitemap_link" href="categories/'.$cRow['c_id'].'/'.cleanitup($cRow['c_title']).'.html"><img src="templates/default/images/more.png" width="9" height="9" /> '.$cRow['c_title'].'</a></td></tr>';
                                            }
                                            ?>
                                        </table>
                                    </td>
                                    <td valign="top" width="200px">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                            <?php
                                            $pQuery = mysql_query("select * from dt_pages where p_id = '3' or p_id = '4'");
                                            while ($pRow = mysql_fetch_array($pQuery)){
                                                echo '<tr><td class="sitemap_holder"><a class="sitemap_link" href="pages/'.$pRow['p_id'].'/'.cleanitup($pRow['p_title']).'.html"><img src="templates/default/images/more.png" width="9" height="9" /> '.$pRow['p_title'].'</a></td></tr>';
                                            }
                                            echo '<tr><td class="sitemap_holder"><a class="sitemap_link" href="contact.html"><img src="templates/default/images/more.png" width="9" height="9" /> Contact</a></td></tr>';
                                            ?>
                                        </table>
                                    </td>
                                    <td valign="top">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                            <?php
                                            echo '<tr><td class="sitemap_holder"><a class="sitemap_link" href="sitemap.html"><img src="templates/default/images/more.png" width="9" height="9" /> Site map</a></td></tr>';
                                            $pQuery = mysql_query("select * from dt_pages where p_id = '5' or p_id = '6' or p_id = '7'");
                                            while ($pRow = mysql_fetch_array($pQuery)){
                                                echo '<tr><td class="sitemap_holder"><a class="sitemap_link" href="pages/'.$pRow['p_id'].'/'.cleanitup($pRow['p_title']).'.html"><img src="templates/default/images/more.png" width="9" height="9" /> '.$pRow['p_title'].'</a></td></tr>';
                                            }
                                            ?>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    <!-- end articole mijloc /////////////////////////////////// -->
                    </td>
                    <td class="coloana_separator" valign="top">&nbsp;</td>
                    <?php
                            $cDreapta = mysql_query("select * from dt_mod_visible
                                            where z_id = '2'
                                            and visible = '1'
                                            and p_id = '9'
                                            order by `order`");
                            //daca nu exista nici un rezultat atunci ascunde coloana
                            if (mysql_num_rows($cDreapta)>0){
                    ?>
                    <td id="content_dreapta" valign="top">
    <!-- content dreapta ////////////////////////////////////// -->
    <?php include DIR_MODULES . 'coloane_module/coloana_dreapta.php'; ?>
    <!-- end content dreapta ////////////////////////////////// -->
                    </td>
                    <?php }?>
                </tr>
            </table>
        <!-- end mijloc si dreapta //////////////////////////////// -->
        </td>
    </tr>
</table>